package com.hilinos.common.util;

import com.hilinos.common.entity.RespVo;
import lombok.Getter;

/**
 * @author qhl
 */
public class ReturnException extends RuntimeException {

    private static final long serialVersionUID = 1L;

    @Getter
    private RespVo<?> msg;

    @Getter
    private String messageStr;

    public ReturnException(RespVo<?> msg) {
        this.msg = msg;
    }

    public ReturnException(String messageStr) {
        this.messageStr = messageStr;
    }
}
